package ai.people.netmon.framework.exception.enums;

/**
 * url exception枚举
 *
 * @author zhenglin
 * @date 2022/03/25
 * @since 2022/3/25
 */
public enum URLExceptionEnum implements ExceptionEnum {
    /**
     * 不能解析
     */
    CANNOT_PARSE(false, 410000, "不能解析"),
    ;

    /**
     * 状态
     */
    final boolean status;
    /**
     * 代码
     */
    final int code;
    /**
     * 消息
     */
    final String message;

    URLExceptionEnum(boolean status, int code, String message) {
        this.status = status;
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public boolean getStatus() {
        return false;
    }
}
